package cn.zwx.member.svc.service.impl;

import cn.zwx.common.mybatis.query.LambdaQueryWrapperX;
import cn.zwx.member.svc.domain.entity.MemberDistrictsEntity;
import cn.zwx.member.svc.mapper.MemberDistrictsMapper;
import cn.zwx.member.svc.service.DistrictsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zhangwenxue
 */
@Service
public class DistrictsServiceImpl implements DistrictsService {

    @Resource
    private MemberDistrictsMapper mapper;
    @Override
    public List<MemberDistrictsEntity> selectDistrictIdList(List<Integer> districtIdList) {
        return mapper.selectList(new LambdaQueryWrapperX<MemberDistrictsEntity>()
                .in(MemberDistrictsEntity::getDistrictId,districtIdList));
    }
}
